/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package docmanager.business.objects;

import bf.DataAccess;
import java.sql.*;

/**
 *
 * @author Juan Lucas
 */
abstract public class BusinessObject
{
    
    protected int id;

    protected Connection conn;

    public Connection getConn()
    {
        return conn;
    }

    public void setConn(Connection conn)
    {
        this.conn = conn;
    }
    
 
    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public void guardarNuevo() throws SQLException
    {
        this.guardarNuevo(this.conn);
    }
    
    abstract public void guardarNuevo(Connection conn) throws SQLException;
    
    
}
